router: remove some log spam in send_router_advert()
authorDavid Härdeman <[email protected]>
Sat, 13 Dec 2025 12:34:54 +0000 (13:34 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 14 Dec 2025 21:19:01 +0000 (22:19 +0100)
Both these messages would otherwise be printed on each RA.

Especially the second one merely means that we're follwing the cfg
explicitly set by the user, so they're not very likely to be interested
to know that we're doing what we've been told to do.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/358
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/router.c

index b756cf6d790e91450288700debf5d38050a28430..3c32a1129cf2e1ab402e0380a044d405f0289025 100644 (file)
@@ -1017,16 +1017,16 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr
                uint32_t valid_lt;
 
                if (addr->dprefix_len >= 64 || addr->dprefix_len == 0 || addr->valid_lt <= (uint32_t)now) {
-                       info("Address %s (dprefix %d, valid-lifetime %u) not suitable as RA route on %s",
-                            inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
-                            addr->dprefix_len, addr->valid_lt, iface->name);
+                       debug("Address %s (dprefix %d, valid-lifetime %u) not suitable as RA route on %s",
+                             inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
+                             addr->dprefix_len, addr->valid_lt, iface->name);
                        continue;
                }
 
                if (ADDR_MATCH_PIO_FILTER(addr, iface)) {
-                       info("Address %s filtered out as RA route on %s",
-                            inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
-                            iface->name);
+                       debug("Address %s filtered out as RA route on %s",
+                             inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
+                             iface->name);
                        continue;
                }